
export default {
    id: "SalesEntity",
    returnTotal: true,
    modelFile: "sales/dataset/SalesEntity.xml",
    //主从配置
    relation: {
        selfField: ["FNUMBER"],
        parentField: ["FNUMBER"]
    },
    sortFields: [
        "FID",
        "FNUMBER",
        "FGOODSNUMBER",
        "FBARCODE",
        "FDESC",
        "FSPEC",
        "FUNIT",
        "FPRICE",
        "FCLASS",
        "FDISCOUNT",
        "FAMOUNT",
        "FDISCOUNTFMONEY",
        "FAPPROVALNUMBER",
        "FBRAND",
        "FAPPROVALDATE",
        "FPRESCRICLASS",
        "FDOSAGEFORMID",
        "FMEDICARETYPE",
        "FDRUGCLASS	",
        "FABC",
        "FUSERID",
        "FCREATEDATE",
        "FDISCOUNTPRICE",
        "FENTERPRISEDESC",
        "FENTERPRISEID",
        "FSHOPDESC",
        "FSHOPDESCID",
        "FUSERDESC"
    ],
    fields: {
        FID: {
            name: "FID", //字段ID
            label: "ID", //字段描述
            dbtype: "dbString", //数据类型

        },

        FNUMBER: {
            name: "FNUMBER", //字段ID
            label: "单号", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },
        FGOODSNUMBER: {
            name: "FGOODSNUMBER", //字段ID
            label: "店内编码", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },
        FBRAND: {
            name: "FBRAND", //字段ID
            label: "品牌", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },
        FDESC: {
            name: "FDESC", //字段ID
            label: "通用名称", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },

        FUNIT: {
            name: "FUNIT", //字段ID
            label: "单位", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },
        FPRICE: {
            name: "FPRICE", //字段ID
            label: "零售价", //字段描述
            dbtype: "dbFloat", //数据类型

        },
        FDISCOUNT: {
            name: "FDISCOUNT", //字段ID
            label: "折扣", //字段描述
            dbtype: "dbFloat", //数据类型

        },
        FDISCOUNTPRICE: {
            name: "FDISCOUNTPRICE", //字段ID
            label: "折后单价", //字段描述
            dbtype: "dbFloat", //数据类型

        },
        FAMOUNT: {
            name: "FAMOUNT", //字段ID
            label: "数量", //字段描述
            dbtype: "dbFloat", //数据类型


        },
        FDISCOUNTFMONEY: {
            name: "FDISCOUNTFMONEY", //字段ID
            label: "折后金额", //字段描述
            dbtype: "dbFloat", //数据类型

        },
        FMONEYTOTAL: {
            name: "FMONEYTOTAL", //字段ID
            label: "总金额", //字段描述
            dbtype: "dbFloat", //数据类型

        },
        FCLASS: {
            name: "FCLASS", //字段ID
            label: "类别", //字段描述
            dbtype: "dbString", //数据类型
        },
        FBARCODE: {
            name: "FBARCODE", //字段ID
            label: "条形码", //字段描述
            dbtype: "dbString", //数据类型
        },
        FSPEC: {
            name: "FSPEC", //字段ID
            label: "规格", //字段描述
            dbtype: "dbString", //数据类型
        },



        FAPPROVALDATE: {
            name: "FAPPROVALDATE", //字段ID
            label: "批准日期", //字段描述
            dbtype: "dbDate", //数据类型
        },
        FAPPROVALNUMBER: {
            name: "FAPPROVALNUMBER", //字段ID
            label: "批准文号", //字段描述
            dbtype: "dbString", //数据类型
        },
        FMEDICARETYPE: {
            name: "FMEDICARETYPE", //字段ID
            label: "医保类别", //字段描述
            dbtype: "dbString", //数据类型
        },
        FPRESCRICLASS: {
            name: "FPRESCRICLASS", //字段ID
            label: "处方分类", //字段描述
            dbtype: "dbString", //数据类型
        },
        FDRUGCLASS: {
            name: "FDRUGCLASS", //字段ID
            label: "药品分类", //字段描述
            dbtype: "dbString", //数据类型
        },
        FABC: {
            name: "FABC", //字段ID
            label: "ABC级", //字段描述
            dbtype: "dbString", //数据类型
        },

        FENTERPRISEDESC: {
            name: "FENTERPRISEDESC", //字段ID
            label: "企业名称", //字段描述
            dbtype: "dbString", //数据类型
        },
        FENTERPRISEID: {
            name: "FENTERPRISEID", //字段ID
            label: "企业ID", //字段描述
            dbtype: "dbString", //数据类型
        },

        FUSERID: {
            name: "FUSERID", //字段ID
            label: "收营员ID", //字段描述
            dbtype: "dbString", //数据类型

        },
        FUSERDESC: {
            name: "FUSERDESC", //字段ID
            label: "收营员", //字段描述
            dbtype: "dbString", //数据类型

        },
        FCREATEDATE: {
            name: "FCREATEDATE", //字段ID
            label: "时间", //字段描述
            dbtype: "dbDate", //数据类型

        },

        FSHOPDESC: {
            name: "FSHOPDESC", //字段ID
            label: "店铺", //字段描述
            dbtype: "dbString", //数据类型

        },
        FSHOPDESCID: {
            name: "FSHOPDESCID", //字段ID
            label: "店铺编号", //字段描述
            dbtype: "dbString", //数据类型

        },



    }
}
